<div class="form" style="padding-bottom:30px;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'comment-form',
	'enableAjaxValidation'=>true,
)); ?>

	<?php echo Yii::t('admin','<p class="note">Fields with <span class="required">*</span> are required.</p>');?>

	<?php echo $form->errorSummary($model); ?>
	
<div class="span-4 colborder">


	<?php if($this->id == 'blog'):?>
	<div class="row">
		<?php //echo $form->labelEx($model,'com_aid'); ?>
		<?php echo $form->hiddenField($model,'com_aid',array('value'=>$_GET['id'])); ?>
		<?php echo $form->error($model,'com_aid'); ?>
	</div>
	<?php endif;?>

	<?php if($this->id == 'audio'):?>
	<div class="row">
		<?php //echo $form->labelEx($model,'com_auid'); ?>
		<?php echo $form->hiddenField($model,'com_auid',array('value'=>$_GET['id'])); ?>
		<?php echo $form->error($model,'com_auid'); ?>
	</div>
	<?php endif;?>
	<?php if($this->id == 'gallery'):?>
	<div class="row">
		<?php //echo $form->labelEx($model,'com_gid'); ?>
		<?php echo $form->hiddenField($model,'com_gid',array('value'=>$_GET['id'])); ?>
		<?php echo $form->error($model,'com_gid'); ?>
	</div>
	<?php endif;?>
	<?php if($this->id == 'video'):?>
	<div class="row">
		<?php //echo $form->labelEx($model,'com_vid'); ?>
		<?php echo $form->hiddenField($model,'com_vid',array('value'=>$_GET['id'])); ?>
		<?php echo $form->error($model,'com_vid'); ?>
	</div>
	<?php endif;?>
	<?php if($this->id == 'file'):?>
	<div class="row">
		<?php // echo $form->labelEx($model,'com_fid'); ?>
		<?php echo $form->hiddenField($model,'com_fid',array('value'=>$_GET['id'])); ?>
		<?php echo $form->error($model,'com_fid'); ?>
	</div>
	<?php endif;?>

	<div class="row">
		<?php //echo $form->labelEx($model,'com_status'); ?>
		<?php echo $form->hiddenField($model,'com_status',array('value'=>Comment::COMMENT_LOCK)); ?>
		<?php echo $form->error($model,'com_status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'com_author'); ?>
		<?php echo $form->textField($model,'com_author',array('size'=>30,'maxlength'=>30,'style'=>'border-bottom:1px solid grey;')); ?>
		<?php echo $form->error($model,'com_author'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'com_email'); ?>
		<?php echo $form->textField($model,'com_email',array('size'=>50,'maxlength'=>50,'style'=>'border-bottom:1px solid grey;')); ?>
		<?php echo $form->error($model,'com_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'com_website'); ?>
		<?php echo $form->textField($model,'com_website',array('size'=>50,'maxlength'=>50,'style'=>'border-bottom:1px solid grey;')); ?>
		<?php echo $form->error($model,'com_website'); ?>
	</div>

	<hr class="space" />
	<div class="row buttons">

		<button type="button" class="button" onclick="actionCreateComment();"><?php echo  Yii::t('admin','Finish');?></button>

	</div>

</div>
<div>
	<div class="row">
		<?php echo $form->labelEx($model,'com_contents'); ?>
		<?php echo $form->textArea($model,'com_contents',array('rows'=>6, 'cols'=>50,'style'=>'width:95%;margin-top:10px;padding:5px;line-height:1.5em;border:1px solid grey;height:150px;')); ?>
		<?php echo $form->error($model,'com_contents'); ?>
	</div>

</div>



<?php $this->endWidget(); ?>

</div><!-- form -->